<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<script type="text/javascript">
<!--
$(document).unbind("mousedown");
$(document).mousedown(
		 function(e){
			 var e=e?e:window.event;
             var tar = e.srcelement||e.target;
			 var friendGroupId = IsNull(tar.id)?$(tar).parent().attr("id"):tar.id;
			 friendGroupId = IsNull(friendGroupId)?$(tar).parent().parent().attr("id"):friendGroupId;
		
			if(friendGroupId!='friend_add_group' && friendGroupId!='group_name_input_id'){
				$("#friend_add_group").hide();
			}
		
		 }
);
//-->
</script>	
<p>
	<c:forEach items="${groupList}" var="group">
		<strong
		
		<c:choose>
			<c:when test="${type==1}">
				onclick="selectGroup(this,'${friendId}','${group.identifier}','${index}')"
			</c:when>
			<c:when test="${type==2 && group.classify == '03'}">
				onclick="deleteFriendGroup('${group.identifier}','${index}','${friendId}')"
			</c:when>
			<c:otherwise>
				style="background-image:url('')"
			</c:otherwise>
		</c:choose>
		><c:out value="${group.name}"/></strong>
	</c:forEach>
</p>
<c:if test="${type==2}">
	<p>
		<input class="h_myfriends_inputText" type="text" id="group_name_input_id"/><input 
		class="h_myfriends_inputButton" type="button" value="确定" onclick="saveFriendGroup('group_name_input_id','${index}','${friendId}')"/>
	</p>
</c:if>
